package cn.itcast.feignclient.user;

import cn.itcast.config.DefaultFeignConfiguration;
import cn.itcast.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "userservice", configuration = DefaultFeignConfiguration.class)
public interface UserServiceFeignClient {
    @GetMapping("/user/{id}")
    public User getById(@PathVariable Long id);
}
